package com.syh.bishe.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.syh.bishe.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author syh
 * @since 2024-06-30
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {
    @Select("select count(*) from user where email = #{email}")
    int check(User user);
    @Update("update user set password = '123456' where email = #{email}")
    boolean reset(User user);
}
